{extend name="../../admin/view/main"}
{block name='content'}
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body padding-left-40">
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs12 block relative">
                <span class="margin-left-5 code-featured">{$vo.username}</span>
                <span class="margin-left-5 color-desc">{$vo.create_time}</span>
                <span class="margin-left-5 {if $vo.rank>1}color-red{else/}color-green{/if}">{$ranks[$vo.rank]}</span>
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs12 block relative">
                <span class="margin-left-5 color-desc">问题类型：</span>
                <span class="margin-left-5 code-featured">{$feed_types[$vo.feed_type]}</span>
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs12 block relative">
                <span class="margin-left-5 color-desc">可否重现：</span>
                <span class="margin-left-5 code-featured">{$replys[$vo.is_reply]}</span>
            </label>
        </div>
        {if $vo.is_reply>0}
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs12 block relative">
                <span class="margin-left-5 color-desc">重现描述：</span>
                <span class="margin-left-5 code-featured">{$vo.replay_summary}</span>
            </label>
        </div>
        {/if}
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs12 block relative">
                <span class="margin-left-5 color-desc">问题描述：</span>
                <div class="margin-left-5 code-featured">{:nl2br($vo.contents)}</div>
            </label>
        </div>
        {if $reply}
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs12 block relative">
                <span class="margin-left-5 color-desc">问题回复：</span>
                <div class="margin-left-5 code-featured" style="margin-top: -20px;">
                {foreach $reply as $re}
                <br>{:nl2br($re)}
                {/foreach}
                </div>
            </label>
        </div>
        {/if}

        <textarea style="display: none;" name="contents">{$vo.all}</textarea>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs12 block relative">
                <span class="color-green">回复信息</span><span class="margin-left-5 color-desc">Reply to questions</span>
                <textarea class="layui-textarea" name="remark" cols="3" placeholder="请输入回复信息"></textarea>
            </label>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center" style="padding-bottom: 20px;">
        <button class="layui-btn" lay-submit lay-filter="submit">确定</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消回复吗？" data-close="">取消回复</button>
    </div>

</div>

</form>
{/block}

{block name='script'}
<script>
    (function () {
        layui.form.render();
    })();
</script>
{/block}